<template>
	<view>
		<view class="top">

		</view>
		<view class="bottom">
			<u-tabs class="bottom-tabs" inactiveStyle="color:#fff" :list="list1" @click="click"></u-tabs>
			<view class="bottom-card1">
				<view :class="index==0 ? 'quan' : index == 1 ? 'quan1' : 'quan2'">
					<view class="quan-top">
						<view>
							<view class="font2">仅xx加油站可用</view>
							<view class="font1">满200元可用</view>
						</view>
						<view class="qian">
							<u-icon style="margin-top: 20px;" name="rmb" color="#FFF" size="20"></u-icon>
							<u--text decoration="line-through #FEFEFE"  color="#FEFEFE" size="50px" bold text="20"></u--text>
						</view>
						<view class="left-bottom-yuan"></view>
						<view class="right-bottom-yuan"></view>
					</view>
					<view class="quan-bottom">
						<view class="font3">有效期至：2013.12.12-2014.13.13</view>
						<view class="font3">去使用 ></view>
						<view class="left-top-yuan"></view>
						<view class="right-top-yuan"></view>
					</view>
				</view>

			</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				index: 0,

				list1: [{
					name: '待使用',
					index: 0
				}, {
					name: '已使用',
					index: 1
				}, {
					name: '已过期',
					index: 2
				}],




			}
		},

		methods: {
			click(item) {
				console.log('item', item);
				this.index = item.index
			}



		}
	}
</script>

<style>
	.top {
		width: 100%;
		height: 200px;
		background-color: #FF7500;
	}

	.bottom {
		margin: 0 20px;
	}

	.bottom-card1 {
		height: 300px;

		background-color: #fff;
		border-radius: 10px;
		padding: 20px 0px;
	}

	.bottom-tabs {
		margin-top: -185px;
		margin-left: 20%;
	}

	.quan {
		margin: 0 10px;
		height: 140px;
		background-color: #FF804D;
		border-radius: 5px;
	}

	.quan1 {
		background-color: #FFBB99;
		margin: 0 10px;
		height: 140px;
		border-radius: 5px;
	}

	.quan2 {
		background-color: #BFBFBF;
		margin: 0 10px;
		height: 140px;
		border-radius: 5px;
	}

	.qian {
		height: 90px;
		width: 35%;
		display: flex;
	}

	.font1 {
		margin-top: 2px;
		font-size: 17px;
		font-weight: 700;
		color: #FFF;
	}

	.font2 {
		margin-top: 20px;
		font-size: 14px;
		font-weight: 500;
		color: #FFF;
	}

	.font3 {
		color: #D9D9D9;
		font-size: 13px;
	}

	.quan-top {
		display: flex;
		justify-content: space-between;
		padding: 0 20px;
		border-bottom: dashed 1px white;
		position: relative;
		box-sizing: border-box;
	}

	.quan-bottom {
		margin: 10px 10px;
		display: flex;
		justify-content: space-between;
		position: relative;
		box-sizing: border-box;
	}
	
	.left-bottom-yuan, 
	.right-bottom-yuan,
	.left-top-yuan,
	.right-top-yuan{
		width: 20rpx;
		height: 20rpx;
		background-color: white;
		position: absolute;
		overflow: hidden;
		border: 1px solid white;
		box-sizing: border-box;
	}
	
	.left-bottom-yuan{
		bottom: -2rpx;
		left: -1rpx;
		border-top-right-radius: 100%;
	}
	
	.right-bottom-yuan{
		bottom: -2rpx;
		right: -2rpx;
		border-top-left-radius: 100%;
	}
	
	.left-top-yuan{
		top: -20rpx;
		left: -22rpx;
		border-bottom-right-radius:100% ;
	}
	.right-top-yuan{
		top:-20rpx;
		right: -22rpx;
		border-bottom-left-radius: 100%;
		
	}
</style>